﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication4
{
    class Verificar
    {
        public static bool RecibeJugada(int org, int dest, int pieza)
        {
            bool valid = false;
            switch (pieza)
            {
                case 1: valid = Verificar.PlayPawn(org, dest);
                    break;
                //case 2: valid = Verificar.PlayKnight(org, dest);
                    break;
                //case 3: valid = Verificar.PlayBishop(org, dest);
                    break;
               // case 4: valid = Verificar.PlayRook(org, dest);
                    break;
                //case 5: valid = Verificar.PlayQueen(org, dest);
                    break;
                //case 6: valid = Verificar.PlayKing(org, dest);
                    break;
            }
            return valid;
        }

        private static unsafe bool PlayPawn (int org, int dest)
        {
            bool valid = false;
            List<int> posibles = new List<int>();

            if (org > 8 && org < 17)
            {
                posibles.Add(org+8);
                posibles.Add(org+16);
                posibles.Add(org+7);
                posibles.Add(org+9);
            }

            foreach (int esq in posibles)
            {
                if (esq == dest)
                {
                   
                }
            }

            return valid;
        }
    }
}
